class DecoratesController < ApplicationController
  def create
    decorate = Decorate.new params[:decorate]
    if decorate.save
      
    end
  end
  
  def destroy
  end

  def edit
    @decorate = Decorate.find params[:id]
  end

  def index
    unless params[:decorate_type].nil?
      @decorates = Decorate.find :all, :conditions => { :decorate_type => params[:decorate_type]}
    else
      @decorates = Decorate.find :all
    end
  end

  def new
    @decorate = Decorate.new
  end

  def show
  end

  def update
    decorate = Decorate.find params[:id]
    if decorate.update_attributes params[:decorate]
      redirect_to :action => :index 
    end
  end
end
